﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第四十九题
//BC51 三角形判断
//https://www.nowcoder.com/practice/689ec1e742394e09b1059556fc167b65?tpId=107&tqId=33332&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include<stdio.h>

int main() {
    int a = 0;
    int b = 0;
    int c = 0;

    while (scanf("%d %d %d", &a, &b, &c) != EOF) {
        //任意两边之和大于第三边
        if (a + b > c && a + c > b && b + c > a) {
            //三边相等
            if (a == b && b == c) {
                printf("Equilateral triangle!\n");
            }
            else if (a == b || b == c || a == c) {
                printf("Isosceles triangle!\n");
            }
            else {
                printf("Ordinary triangle!\n");
            }
        }
        //不能构成三角形
        else {
            printf("Not a triangle!\n");
        }
    }

    return 0;
}